package edu.zqu.instructionalMatters.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.zqu.instructionalMatters.project.entity.CourseChangesResult;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 何文东
 * @Date 2020-07-03
 * @Description: 课程变动审核结果 - Mapper 接口
 * @Version 1.0
 */
public interface CourseChangesResultMapper extends BaseMapper<CourseChangesResult> {
    @Select("<script>" + "select * from course_changes_result where college_id = #{collegeId} " +
            " <if test = 'courseChangesApplicationId != null'>" +
            " and course_changes_application_id = #{courseChangesApplicationId}" +
            " </if>" +
            " <if test = 'checkType != null'>" +
            " and check_type = #{checkType}" +
            " </if>" + "</script>")
    public List<CourseChangesResult> findAll(CourseChangesResult courseChangesResult);
}
